﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public class cJavaScript
{
    public void jsAlert(string strMensaje, Page Pagina)
    {
        string strScript = string.Empty;
        strScript = "<script language='javascript'>";
        strScript += " alert('" + strMensaje + "');";
        strScript += "</script>";
        Pagina.RegisterStartupScript("MsgBox", strScript);
    }
}
